<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sp" uri="http://www.springframework.org/tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><decorator:title default="SiteMesh的装饰器页" /></title>
<link href="/css/reset.css" rel="stylesheet" type="text/css" />
<link href="/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="/js/ul2tree/ul2tree.0.1.5.js"></script>
<script type="text/javascript" src="/js/json.min.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/formcheck/formcheck-0.0.2.js"></script>
<script type="text/javascript">
	/**
	 * 切换本地语言
	 */
	function changeLocal(local) {
		$.ajax({
			url : "/common/i18n/local/" + local + ".dhtml",
			success : function() {
				location.reload();
			},
			async : false
		});
	}
</script>
</head>

<body>
  <div class="header">
    <img class="logo" src="/images/common/logo.jpg" />
    <h1>
      <sp:message code="admin.manage.title" />
    </h1>
    <a href="" onclick="changeLocal('cn'); return false;" class="right"><sp:message code="common.locale.chinese" /></a> <a
      href="" onclick="changeLocal('en'); return false;" class="right"><sp:message code="common.locale.english" /></a>
    <c:if test="${sessionScope.sys_user != null }">
      <a href="/admin/logout.dhtml" class="right"><sp:message code="common.logout.title" /></a>
      <a href="/admin/userCenter/main.dhtml" class="right"><sp:message code="common.userCenter.title" /></a>
    </c:if>
    <a href="/admin/main.dhtml" class="right"><sp:message code="common.homepage" /></a>
  </div>
  <div class="main_navi">
    <ul class="block_center width_980">
      <c:forEach var="s" items="${sessionScope.mainMenu}">
        <li><a href="<c:out value="${s.url }" />" class="<c:out value="${s.checked =='true'?'selected':''}" />"><c:out
              value="${s.name}" default="" /></a></li>
      </c:forEach>
    </ul>
  </div>